package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/2/25
 * @time: 16:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VoAptList {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 病人id
     */
    private Long ptId;
    /**
     * 医生id
     */
    private Long drId;
    /**
     * 预计就诊时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;
    /**
     * 预计就诊时间段
     */
    private Integer stage;
    /**
     * 待确认，确认，取消
     */
    private Integer status;
    /**
     * 删除标识符
     */
    private Integer deleted;
    /**
     * 医生名字
     */
    private String drName;
    /**
     * 医生机构名字
     */
    private String drEntName;
    /**
     * 医生机构地址
     */
    private String drEntAddr;
    /**
     * 病单id
     */
    private Long dxId;
    /**
     * 诊断评价
     */
    private String evaluation;
    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    /**
     * 更新时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date utime;
}
